package homework.bean;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Getter
@Setter
@NoArgsConstructor
public class ClassBean implements Serializable {

    private Integer classId;

    private String name;

    private List<StudentBean> list = new ArrayList<StudentBean>();

    public ClassBean(Integer classId, String name) {
        this.classId = classId;
        this.name = name;
    }

    @Override
    public String toString() {
        return  this.name;
    }
}
